#!/bin/bash
BACKUP_DIR="backups"
mkdir -p $BACKUP_DIR
TS=$(date +%Y%m%d-%H%M%S)
cp blockchain.json "$BACKUP_DIR/${TS}_pre-bbs.json"
echo "备份成功 ➜ $BACKUP_DIR/${TS}_pre-bbs.json"
